package com.master;

import static com.util.Vessel.*;

public class MindCrm {
    //个人中心
    public void mind(int cId,int tId){
        System.out.println("请选择您的操作:");
        System.out.println("1.未支付订单明细");
        System.out.println("2.已支付订单");
        System.out.println("3.开通Vip");
        System.out.println("4.Vip充值");
        System.out.println("5.评论");
        System.out.println("6.退出");
        int choice = scanner.nextInt();
        switch (choice){
            case 1:
                orderSer.unPay(cId,tId);
                break;
            case 2:
                orderSer.paid(cId);
                break;
            case 3:
                boolean vip = vipImpl.vipJudge(cId);
                if (!vip){
                    vipSer.joinVip(cId);
                }else{
                    System.out.println("您已是vip");
                    mind(cId,tId);
                }
                break;
            case 4:
                boolean vip1 = vipImpl.vipJudge(cId);
                if (vip1){
                    double balance = vipImpl.Balance(cId);
                    System.out.println("余额:" + balance);
                }else{
                    System.out.println("这是vip专属");
                    mind(cId,tId);
                }
                break;
            case 5:
                orderSer.comment(cId);
                break;
            case 6:
                break;
        }
    }
}
